import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";
const routes = [
    {
        name: "index",
        path: "/",
        component: () => import('../views/pc/HomePage.vue')
    },
    {
        name: "home",
        path: "/home",
        component: () => import('../views/pc/HomePage.vue')
    },
    {
        name: "solution",
        path: "/solution",
        component: () => import('../views/pc/PcSolution.vue')
    },
    {
        name: "product",
        path: "/product",
        component: () => import('../views/pc/PcProduct.vue')
    },
    
    {
        name: "customer",
        path: "/customer",
        component: () => import('../views/pc/PcCustomerCase.vue')
    },
    {
        name: "solutionDetail",
        path: "/solutionDetail",
        component: () => import('../views/pc/PcSolutionDetail.vue')
    },
    {
        name: "customerCasePage",
        path: "/customerCasePage",
        component: () => import('../views/pc/PcCustomerCase.vue')
    },
    {
        name: "about",
        path: "/about",
        component: () => import('../views/pc/AboutPage.vue')
    },
    {
        name: "businessmovement",
        path: "/businessmovement",
        component: () => import('../views/pc/BusinessMovement.vue')
    },
    {
        name: "articleDetail",
        path: "/articleDetail",
        component: () => import('../views/pc/ArticleDetail.vue')
    },
    {
        name: "contactUs",
        path: "/contactUs",
        component: () => import('../views/pc/ContactUs.vue')
    },

    {
        name: "mobile",
        path: "/mobile",
        component: () => import('../views/MobilePage.vue')
    },
    // 后台管理 开始
    // 后台管理首页
    {
        name: "admin",
        path: "/admin",
        component: () => import('../views/admin/AdminHome.vue'),
        // redirect: '/adminConfig',
        children: [
            {
                name: "adminConfig",
                path: "/adminConfig",
                component: () => import('../views/admin/AdminConfig.vue'),
            }, {
                name: "banner",
                path: "/banner",
                component: () => import('../views/admin/AdminIndexBanner.vue'),
            },
            {
                name: "adminSolutionModel",
                path: "/adminSolutionModel",
                component: () => import('../views/admin/AdminSolutionModel.vue'),
            },
            {
                name: "comprehensive",
                path: "/comprehensive",
                component: () => import('../views/admin/CompreHensive.vue'),
            },
            {
                name: "selectAll", //为什么选择我们
                path: "/selectAll",
                component: () => import('../views/admin/SelectAll.vue'),
            },
            {
                name: "cooperate",
                path: "/cooperate",
                component: () => import('../views/admin/CoopeRate.vue'),
            },
            {
                name: "adminCompanyDynamics",
                path: "/adminCompanyDynamics",
                component: () => import('../views/admin/AdminCompanyDynamics.vue'),
            },

            {
                name: "CompanyDynamics",
                path: "/companyDynamics",
                component: () => import('../views/admin/CompanyDynamics.vue')
            },
            {
                name: "addArticle",
                path: "/addArticle",
                component: () => import('../views/admin/AddArticle.vue')
            },
        ]

    },
    // 后台管理 解决方案
    {
        name: "adminSolution", 
        path: "/adminSolution",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/adminSolutionBanner',
        children: [
            {
                name: "adminSolutionBanner",
                path: "/adminSolutionBanner",
                component: () => import('../views/admin/solution/SolutionBanner.vue')
            },
            {
                name: "adminSolutiontab",
                path: "/adminSolutionTab",
                component: () => import('../views/admin/solution/SolutionTab.vue')
            },
            // 行业管理
            {
                name: "tradeManagement",
                path: "/tradeManagement",
                component: () => import('../views/admin/solution/TradeManagement.vue')
            },
            // 产品概述
            {
                name: "productOverview",
                path: "/productOverview",
                component: () => import('../views/admin/solution/ProductOverview.vue')
            },
            // 九大优势
            {
                name: "nineAdvantages",
                path: "/nineAdvantages",
                component: () => import('../views/admin/solution/NineAdvantages.vue')
            },
            // 方案价值
            {
                name: "schemeValue",
                path: "/schemeValue",
                component: () => import('../views/admin/solution/SchemeValue.vue')
            },
            {
                name: "industrySolutions",
                path: "/industrySolutions",
                component: () => import('../views/admin/solution/IndustrySolutions.vue')
            },
            {
                name: "riskControl",
                path: "/riskControl",
                component: () => import('../views/admin/solution/RiskControl.vue')
            },
            {
                name: "coreAdvantage",
                path: "/coreAdvantage",
                component: () => import('../views/admin/solution/CoreAdvantage.vue')
            },
            {
                name: "empowerYou",
                path: "/empowerYou",
                component: () => import('../views/admin/solution/EmpowerYou.vue')
            },{
                name: "customerCase",
                path: "/customerCase",
                component: () => import('../views/admin/solution/CustomerCase.vue')
            }
        ]
    },
    // 后台管理 关于我们
    {
        name: "adminAboutUs", 
        path: "/adminAboutUs",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/aboutUsBanner',
        children: [
            {
                name: "aboutUsBanner",
                path: "/aboutUsBanner",
                component: () => import('../views/admin/aboutUs/AboutUsBanner.vue')
            },
            {
                name: "aboutLoreage",
                path: "/aboutLoreage",
                component: () => import('../views/admin/aboutUs/AboutLoreage.vue')
            },
            {
                name: "enterpriseCulture",
                path: "/enterpriseCulture",
                component: () => import('../views/admin/aboutUs/EnterpriseCulture.vue')
            },
            {
                name: "shareholder",
                path: "/shareholder",
                component: () => import('../views/admin/aboutUs/ShareHolder.vue')
            },
            {
                name: "honor",
                path: "/honor",
                component: () => import('../views/admin/aboutUs/AboutHonor.vue')
            },
        ]
    },
    // 后台管理企业动态
    {
        name: "business", // 企业动态
        path: "/business",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/businessArticle',
        children: [
            {
                name: "businessColumn",
                path: "/businessColumn",
                component: () => import('../views/admin/BusinessColumn.vue')
            },
            {
                name: "businessArticle",
                path: "/businessArticle",
                component: () => import('../views/admin/BusinessArticle.vue')
            },
            {
                name: "businessBanner",
                path: "/businessBanner",
                component: () => import('../views/admin/BusinessBanner.vue')
            }
        ]
    },
    // 后台管理 联系我们
    {
        name: "adminContactUs", 
        path: "/adminContactUs",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/adminContactUsBanner',
        children: [
            {
                name: "adminContactUsBanner",
                path: "/adminContactUsBanner",
                component: () => import('../views/admin/contactUs/ContactUsBanner.vue')
            },
            {
                name: "adminContactUsAdressBanner",
                path: "/adminContactUsAdressBanner",
                component: () => import('../views/admin/contactUs/ContactUsAddressBanner.vue')
            },
            
            {
                name: "adminContactRecruit",
                path: "/adminContactRecruit",
                component: () => import('../views/admin/contactUs/ContactRecruit.vue')
            },
            {
                name: "salaryAndWelfare",
                path: "/salaryAndWelfare",
                component: () => import('../views/admin/contactUs/SalaryAndWelfare.vue')
            },
            {
                name: "contactUsEntry",
                path: "/contactUsEntry",
                component: () => import('../views/admin/contactUs/ContactUsEntry.vue')
            },
            {
                name: "adminContactAddress",
                path: "/adminContactAddress",
                component: () => import('../views/admin/contactUs/ContactAddress.vue')
            }
        ]
    },
    // 后台管理基础产品
    {
        name: "baseSolution", 
        path: "/baseSolution",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/baseSolutionBanner',
        children: [
            {
                name: "baseSolutionBanner",
                path: "/baseSolutionBanner",
                component: () => import('../views/admin/baseSolution/SolutionBanner.vue')
            },
            {
                name: "baseSolutiontab",
                path: "/baseSolutionTab",
                component: () => import('../views/admin/baseSolution/SolutionTab.vue')
            },
            {
                name: "baseSolutionProductOverview",
                path: "/baseSolutionProductOverview",
                component: () => import('../views/admin/baseSolution/ProductOverview.vue')
            },
            {
                name: "baseSolutionSchemeValue",
                path: "/baseSolutionSchemeValue",
                component: () => import('../views/admin/baseSolution/SchemeValue.vue')
            },
            {
                name: "baseSolutionNineAdvantages",
                path: "/baseSolutionNineAdvantages",
                component: () => import('../views/admin/baseSolution/NineAdvantages.vue')
            },
            {
                name: "baseSolutionSchemeValue",
                path: "/baseSolutionSchemeValue",
                component: () => import('../views/admin/baseSolution/SchemeValue.vue')
            },
            {
                name: "baseSolutionEmpowerYou",
                path: "/baseSolutionEmpowerYou",
                component: () => import('../views/admin/baseSolution/EmpowerYou.vue')
            },{
                name: "baseSolutionCustomerCase",
                path: "/baseSolutionCustomerCase",
                component: () => import('../views/admin/baseSolution/CustomerCase.vue')
            }
        ]
    },
    // 后台管理登录
    {
        name: "login",
        path: "/login",
        component: () => import('../views/admin/AdminLogin.vue')
    },
    // 尾部管理 
    {
        name: "pcFooter", // 企业动态
        path: "/pcFooter",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/pcFooterContanctUs',
        children: [
            {
                name: "pcFooterContanctUs",
                path: "/pcFooterContanctUs",
                component: () => import('../views/admin/footer/FooterContactUs.vue')
            },
            {
                name: "footerBlogroll",
                path: "/footerBlogroll",
                component: () => import('../views/admin/footer/FooterBlogroll.vue')
            },
            {
                name: "footerQr",
                path: "/FooterQr",
                component: () => import('../views/admin/footer/FooterQr.vue')
            }
        ]
    },
    {
        name: "logo", // 企业动态
        path: "/logo",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/pclogo',
        children: [
            {
                name: "pclogo",
                path: "/pclogo",
                component: () => import('../views/admin/PcLogo.vue')
            }
        ]
    },
    // 视频管理
    {
        name: "videoManagement", // 企业动态
        path: "/videoManagement",
        component: () => import('../views/admin/AdminHome.vue'),
        redirect:'/video',
        children: [
            {
                name: "video",
                path: "/video",
                component: () => import('../views/admin/videoManagement.vue')
            }
        ]
    },
    // 后台管理 结束
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router